<?php
/**
 * Created by : PhpStorm
 * Message: 后台首页控制器
 * User: bingdi
 * Time: 2020/2/1814:42
 * motto: 现在的努力是为了小时候吹过的牛逼!
 */

namespace app\admin\controller;


use app\BaseController;
use think\facade\Db;
use think\facade\View;
use think\route\dispatch\Controller;

class Intention extends AdminBase
{
    public function index()
    {
        $model=Db::name('intention')
            ->order(['create_time'=>'DESC'])
            ->select()
            ->toArray();
        return View::fetch("index",['model'=>$model]);
    }
}